﻿@{
    ViewData["Title"] = "Index";
}
@model String

<h1>frist Index</h1>

<h2>ViewBag.User获取方式=@ViewBag.User</h2>
<h2>ViewData["User2"]获取方式=@ViewData["User2"]</h2>
<h2>TempData["User3"]获取方式=@TempData["User3"]</h2>
<h2> HttpContext.Session.SetString("User4", "王五")获取方式=@Context.Session.GetString("User4")</h2>
<h2> string User5 = "赵六"; return View(User5); 获取方式=@Model</h2>

